package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.QuestionType;

import java.util.List;

/**
 * <p>
 * 试题类型 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public interface QuestionTypeService extends IService<QuestionType> {
	QuestionType AddQuestionType(QuestionType questionType);

	QuestionType UpdateQuestionType(QuestionType questionType);

	QuestionType GetQuestionType(Integer id);

	List<QuestionType> SearchQuestionTypeWithKey(String key,Boolean withoutBan);
	
	IPage<QuestionType> ListQuestionTypeWithTagAndType(Integer count, Integer page, Integer type, Integer tag,Boolean withoutBan);

	QuestionType SetQuestionTypeState(Integer id, Integer state);
}
